package com.tianxia120.website.admin.controller;

import com.jfinal.aop.Before;
import com.jfinal.aop.Inject;
import com.tianxia120.website.admin.service.MenuService;
import com.tianxia120.website.data.annotation.IgnoreToken;
import com.tianxia120.website.data.controller.BaseController;
import com.tianxia120.website.data.interceptors.Get;

/**
 * @createTime: 2018/9/26 17:49
 * @author: HingLo
 * @description: 菜单管理
 */
public class MenuController extends BaseController {

    @Inject
    private MenuService menuService;

    /**
     * 菜单列表
     */
    @IgnoreToken
    @Before(Get.class)
    public void list() {
        success(menuService.listService());
    }
}
